from SCons.Script import *

##################################
# Builders
##################################

_vlog_builder = Builder(
        action='vlog $SOURCES',
        suffix='.qdb',
        src_suffix=['.sv', '.v']
    )

def generate(env):
    '''
    Add builders and construction variables to the Environment.
    '''
    env['BUILDERS']['Vlog'] = _vlog_builder

def exists(env):
    return 1

